{extend name="layout/main-block" /}

<!-- main content start -->
{block name="content"}
<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <ol class="breadcrumb">
                <li class="h4"><a href="">模块管理</a></li>
            </ol>
        </div>
        <div class="row col-sm-1" style="margin-bottom: 20px;">
            <a href="{:url('modules/modules_create')}" class="btn btn-primary" role="button">添加分类</a>
        </div>
        <div class="row content-main">
            <div class="col-sm-12">
                <form action="">
                    <table class="table table-striped">
                        <tr>
                            <th>id</th>
                            <th>分类名称中文</th>
                            <th>分类名称英文</th>
                            <th>操作</th>
                        </tr>
                        {volist name="modules" id="v" empty="$empty" }
                        <tr>
                            <td>{$v.menu_id}</td>
                            <td>{$v.menu_name_cn |mb_substr=0,8}</td>
                            <td>{$v.menu_name_en |mb_substr=0,10}</td>
                            <td class="operation">
                                <a class="btn btn-info btn-xs" href="{:url('modules/modules_update', ['id'=>$v.menu_id])}"><i class="glyphicon glyphicon-edit"></i>修改</a>
                                <a class="btn btn-danger btn-xs" href="{:url('modules/modules_delete', ['id'=>$v.menu_id])}" onclick="return confirm('确定要删除吗？');"><i class="glyphicon glyphicon-remove"></i>删除</a>
                               <!-- <a href="{:url('modules/modules_stick', ['id'=>$v.menu_id])}" >置顶</a>
                                <a href="{:url('modules/modules_outstick', ['id'=>$v.menu_id])}" >取消置顶</a>-->
                            </td>
                        </tr>
                        {/volist}

                    </table>
                </form>
            </div>
        </div>
{$page}
    </section>
</section>
{/block}